const path = require("path")
const fs = require("fs")

function render(locals) {
    const template = fs.readFileSync(path.join(__dirname, "index.html"), "utf8")
    return template.replace("IMAGES", locals)
}

module.exports = render
